import java.io.*;
public class Example03{
    public static void main(String[] args)throws Exception{
        OutputStream out = new FileOutputStream("example.txt",true);
        String str = "小猫";
        byte[]b = str.getBytes();
        for(int i = 0;i<b.length;i++){
            out.write(b[i]);
        }
        out.close();
    }
}